<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="str"></div>
    <script>
        let str = '北海市'
        let str2 = '北海市'+'银海区'+str
        let str3 = `
        <div>123 
            ${str}
            </div>
        `
        let div2 = document.getElementById('str')
        div2.innerHTML=str3
    </script>
</body>
</html>